package com.hcss;

import com.hcss.generator.MybatisGeneratorBusiness;
import com.hcss.generator.enums.DatasourceType;

/**
 * @描述: 根据模板生成业务Controller、Service、ServiceImpl文件
 * @作者: xuqian
 * @创建日期: 2018-07-11 16:59
 * @公司 浙江鸿程计算机系统有限公司
 */
public class RunGenerateMain {

	public static void main(String[] args) {
		String basePackagePath = "com.hcss.model",// 引用java类的包路径
				baseBusinessPackagePath = "com.hcss.model",// 生成java类的包路径
				modelClass = "Model", // 引用java类的基础类名
				businessName = "模型的model层",// 业务名
				auth = "guoxia";
		try {
			MybatisGeneratorBusiness.getInstance("/uuid", DatasourceType.oracle).generate(basePackagePath,
					baseBusinessPackagePath,
					modelClass, businessName,
					auth);
			//            MybatisGeneratorController.getInstance().generateControllerFile(
			//                    modelClass, basePackagePath, baseBusinessPackagePath, businessName);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
